﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using System.Collections.Generic;

namespace EkStudio.com.bean.xml.BillModule
{

    public class BillUiFormatModuleLinkers:BillObjectInterface
    {
        private List<BillUiFormatModuleLinker> linker = null;
        [XmlElement]
        public List<BillUiFormatModuleLinker> Linker
        {
            get
            {
                return linker;
            }

            set
            {
                linker = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillUiFormatModuleLinkers clone = new BillUiFormatModuleLinkers();
            
            if (this.linker != null && this.linker.Count > 0)
            {
                clone.Linker = new List<BillUiFormatModuleLinker>();
                List<BillUiFormatModuleLinker> list = clone.Linker;
                for (int i = 0; i < linker.Count; i++)
                {
                    list.Add((BillUiFormatModuleLinker)linker[i].Clone());
                }
            }

            return clone;
        }
    }
}
